package carltechnology.com.mahjonggame.mode.impl;

import carltechnology.com.mahjonggame.mode.AbstractData;

/**
 * Created by WZTCM on 2016/6/14.
 */
public class MahjongGameDetailMode extends AbstractData{
    //private int id;
    private int [] income;
    private int cost;
    private int perunit;
    private String date;
    private int perId;

    private MahjongGameDetailMode(int[] income, int cost, int perunit, String date) {
        this.perId = DATA_RES.NONE_ID.getCode();
        this.income = income;
        this.cost = cost;
        this.perunit = perunit;
        this.date = date;
    }
    private MahjongGameDetailMode(int id,int[] income, int cost, int perunit, String date) {
        this.perId = id;
        this.income = income;
        this.cost = cost;
        this.perunit = perunit;
        this.date = date;
    }

    @Override
    public int getId() {
        return perId;
    }

    @Override
    public int getCost() {
        return cost;
    }

    @Override
    public int getUnitPrice() {
        return perunit;
    }

    @Override
    public String getDate() {
        return date;
    }


    @Override
    public int[] getPrice() {
        return income;
    }

    public static MahjongGameDetailMode _of(int [] income,int cost,int perunit,String date){
        return new MahjongGameDetailMode(income,cost,perunit,date);
    }
    public static MahjongGameDetailMode _of(int id,int [] income,int cost,int perunit,String date){
        return new MahjongGameDetailMode(id,income,cost,perunit,date);
    }
}
